package com.itshen.one.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: stephen.shen
 * @create: 2018-12-12 14:06
 */
@Slf4j
@RestController
public class TestController {

    @GetMapping("/hello")
    public Object hello(@RequestParam String name) {
        log.info("test info {}", name);
        log.error("test error {}", name);
        return "hello " + name;
    }
}
